-- GENERATED SPELL FOR [Southsea Freebooter] --


function spell0_7856(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7856', 512, 1)
end

function Sorts_7856(pUnit, Event)
local choix_sorts_7856 = math.random(0, 0)
if choix_sorts_7856 == 0 then
pUnit:RegisterEvent('spell0_7856', 1, 1)
end
end

function mob7856_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7856', math.random(1500, 3000), 1)
end

function mob7856_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7856_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7856_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7856, 1, 'mob7856_Action')
RegisterUnitEvent(7856, 2, 'mob7856_Leave')
RegisterUnitEvent(7856, 3, 'mob7856_Kill')
RegisterUnitEvent(7856, 4, 'mob7856_Die')
